package example.hello_security.Servlet.IMp;

import example.hello_security.Entity.UserEntity;
import example.hello_security.Mapper.UserMapper;
import example.hello_security.Servlet.UserServlet;
import jakarta.annotation.Resource;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class UserServletImp implements UserServlet {
    @Resource
    UserMapper userMapper;


    @Override
    public UserEntity user(String username) {
        return userMapper.user(username);
    }

}
